#this is NOT recommended, as it will end as soon as you exit! Please use tcp-onetime.rb!
require 'gserver'
class MyServer < GServer
puts( "[+] Engine Loaded, serving on port 1234!" )
  def serve( io )
    loop do
      io.puts( "This is a test tcp server!" )
	  puts( "[-] Notification: Recieved Connection!")
	  io.puts( "\n Connection has ended." )
	  exit
    end
  end
end
s = MyServer.new 1234
s.start
s.join


